#include <stm32f10x.h>

int main(void)
{
 //开启GPIOC的时钟
 //*(uint32_t *)(0 x40021000 + 0x18) = 16;
	//RCC->APB2ENR=16;
	//RCC->APB2ENR|=0X01<<4;
	RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
	//给PC1设置为通用推挽输出
  //*(uint32_t *)(0x40011000 + 0x00) = 0x30;
	//GPIOC->CRL |=0X03<<4;
	GPIOC->CRL |= GPIO_CRL_MODE1;
	//GPIOC->CRL &= ~(0X03)<<6;
	GPIOC->CRL &= ~GPIO_CRL_CNF1;
	//
	GPIOC->CRL |= GPIO_CRL_MODE2;
	GPIOC->CRL &= ~GPIO_CRL_CNF2;
	
	//
	GPIOC->CRL |= GPIO_CRL_MODE3;
	GPIOC->CRL &= ~GPIO_CRL_CNF3;
  //给输出寄存器赋值
  //*(uint32_t *)(0x40011000 + 0x0c) = 0x02;
   //GPIOC->ODR |= 0X01<<2;
	 GPIOC->ODR |= GPIO_ODR_ODR1;
	
	GPIOC->ODR |= GPIO_ODR_ODR2;
	
	GPIOC->ODR |= GPIO_ODR_ODR3;
	while (1)
{
	
}
return 0;
}
